import request from '@/utils/request'
import { openapi_url } from '@/utils/url'

export function list(query) {
    return request({
        url: openapi_url('/form/item/list'),
        method: 'get',
        params: query
    })
}

export function create(query) {
    return request({
        url: openapi_url('/form/item/create'),
        method: 'post',
        params: query
    })
}

export function update(query) {
    return request({
        url: openapi_url('/form/item/update'),
        method: 'post',
        params: query
    })
}

export function deleteItem(query) {
    return request({
        url: openapi_url('/form/item/delete'),
        method: 'post',
        params: query
    })
}
